package com.hxf.dao.user;

import java.util.List;

import com.hxf.dao.BaseDao;
import com.hxf.dto.AdminRoleDto;
import com.hxf.dto.RestaurentUserDto;
import com.hxf.dto.ReturnData;
import com.hxf.dto.RoleDto;
import com.hxf.dto.UserDto;
import com.hxf.exception.DaoLevelException;


public interface RestaurantUserDao extends BaseDao {

	public ReturnData<RestaurentUserDto> findByRestaurentUser(RestaurentUserDto userDto, int targetPage, int pageSize)throws DaoLevelException;
	
	public int deleteUserRoleByUserId(Integer userId) throws DaoLevelException;
	
	/**
	 * 餐厅人员-查找角色
	 * @param urDto
	 * @return
	 * @throws DaoLevelException
	 */
	public List<RoleDto> findByUserRole(RestaurentUserDto urDto)throws DaoLevelException;
	
	/**
	 * 用户登录验证
	 * @param userDto
	 * @return
	 * @throws DaoLevelException
	 */
	public int restaurantUserLogin(RestaurentUserDto restaurentUserDto)throws DaoLevelException;
	
	/**
	 * 返回 RestaurentUserDto 实例
	 * @param dto
	 * @return
	 * @throws DaoLevelException
	 */
	public RestaurentUserDto findRestaurentUser(RestaurentUserDto dto)throws DaoLevelException;
}
